

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Edit Transitions In State Lifeline [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Transition,Transition Add To State Lifeline Elements,Transition Edit On State Lifeline Elements,Transition Delete On State Lifeline Element,Transition Move On State Lifeline Elements,Transition Merge On State Lifeline Element,Transition Change Time, State Lifeline Element,State Lifeline Element,State Lifeline Element Add Transition,State Lifeline Element Edit Transition,State Lifeline Element Delete Transition,State Lifeline Element Move Transition,State Lifeline Element Synchronize Transition,State Lifeline Element Change Transition Time,State Lifeline Element Merge Transitions">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Edit Transitions In State Lifeline</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="edit_states_in_a_state_lifelin.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="add_and_edit_a_value_lifeline_.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Add and Move Transitions</span></p>
<p class="p_BodyText"><span class="f_BodyText">After you have added states, you can add transitions via the diagram. As you move the cursor over the timeline, the cursor changes to one of three shapes:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">The </span><span class="f_Bulletlist1" style="font-style: italic;">move</span><span class="f_Bulletlist1"> cursor (</span><img src="updowncursor.png" width="14" height="24" border="0" alt="Updowncursor"><span class="f_Bulletlist1">) displays when it is directly over the timeline. Hold down the mouse button and drag the line to move the timeline to a state above or below the current position. You can move the transition more than one state up or down, if necessary.</span></li>
<li><span class="f_Bulletlist1">The </span><span class="f_Bulletlist1" style="font-style: italic;">new transition up</span><span class="f_Bulletlist1"> cursor (</span><img src="timelinecursor5.png" width="18" height="20" border="0" alt="Timelinecursor5"><span class="f_Bulletlist1">) displays when it is just below the timeline, and there is another state above the line. Press and hold </span><span class="f_MenuKeyField">[Alt]</span><span class="f_Bulletlist1">; the cursor changes (</span><img src="timelinecursor2.png" width="15" height="20" border="0" alt="Timelinecursor2"><span class="f_Bulletlist1">). Click to create a new transition to the state above the line. To push the transition up more than one state, then move the cursor onto the line and drag it up. The transition is for one interval unit; to make it longer, see </span><span class="f_Bulletlist1" style="font-style: italic;">Change the Transition Time</span><span class="f_Bulletlist1"> below. </span><br>
<span class="f_Bulletlist1">&nbsp;</span><br>
<span class="f_Bulletlist1">If you do not hold </span><span class="f_MenuKeyField">[Alt]</span><span class="f_Bulletlist1">, the cursor does not change and the whole timeline from the transition onwards moves up.</span></li>
<li><span class="f_Bulletlist1">The </span><span class="f_Bulletlist1" style="font-style: italic;">new transition down</span><span class="f_Bulletlist1"> cursor (</span><img src="timelinecursor6.png" width="18" height="20" border="0" alt="Timelinecursor6"><span class="f_Bulletlist1">) displays when it is just above the transition line, and there is another state below the line. Press and hold </span><span class="f_MenuKeyField">[Alt]</span><span class="f_Bulletlist1">; the cursor changes (</span><img src="timelinecursor3.png" width="17" height="20" border="0" alt="Timelinecursor3"><span class="f_Bulletlist1">). Click to create a new transition to the state below the line. To push the transition down more than one state, then move the cursor onto the line and drag it down. The transition is for one interval unit; to make it longer, see </span><span class="f_Bulletlist1" style="font-style: italic;">Change the Transition Time</span><span class="f_Bulletlist1"> below. </span><br>
<span class="f_Bulletlist1">&nbsp;</span><br>
<span class="f_Bulletlist1">If you do not hold </span><span class="f_MenuKeyField">[Alt]</span><span class="f_Bulletlist1">, the cursor does not change and the whole timeline from the transition onwards moves down.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">As you move the cursor over the vertical line of a transition, the time at which the transition occurs displays next to the line.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Edit Transitions</span></p>
<p class="p_BodyText"><span class="f_BodyText">Follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">Click directly on the appropriate transition line, after the transition begins. Alternatively, right-click on the transition line to display the context menu, and select the </span><span class="f_NumberedList" style="font-weight: bold;">Edit</span><span class="f_NumberedList"> menu option.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<span class="f_NumberedList">The </span><span class="f_UIControl">Edit Transition </span><span class="f_NumberedList">dialog displays. The fields in this dialog are all optional.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="edit%20transition%20event%20dialog.png" width="312" height="216" border="0" alt="Edit Transition Event Dialog"><br>
<span class="f_NumberedList">&nbsp;</span></li>
<li value=2><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">At Time</span><span class="f_NumberedList"> field, type the point on the timescale at which the transition occurs.</span></li>
<li value=3><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Transition To</span><span class="f_NumberedList"> field, type the name of the state to which the transition occurs.</span></li>
<li value=4><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Event </span><span class="f_NumberedList">field, type the name of the event that the transition represents; this displays on the Timeline element just above the transition line.</span></li>
<li value=5><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Duration Constraint</span><span class="f_NumberedList"> field, type any constraint on the duration of the transition; this displays on the Timeline element, along the top of the element over the transition.</span></li>
<li value=6><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Time Constraint</span><span class="f_NumberedList"> field, type any constraint on the start of the transition. This displays on the Timeline element at the start of the transition.</span></li>
<li value=7><span class="f_NumberedList">Click on the </span><span class="f_NumberedList" style="font-weight: bold;">OK</span><span class="f_NumberedList"> button.</span></li>
</ol>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Notes:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">Once </span><span class="f_MenuKeyField">Event</span><span class="f_TiporNoteText">, </span><span class="f_MenuKeyField">Duration Constraint</span><span class="f_TiporNoteText"> or </span><span class="f_MenuKeyField">Time Constraint</span><span class="f_TiporNoteText"> are displayed on the diagram, you can edit them directly by clicking on them to display their specific dialog. You can also delete them by pressing and holding </span><span class="f_MenuKeyField">[Ctrl]</span><span class="f_TiporNoteText"> as you click on them; the cursor changes form when you press </span><span class="f_MenuKeyField">[Ctrl]</span><span class="f_TiporNoteText">.</span></li>
<li><span class="f_TiporNoteText">You can also edit transitions using the </span><span class="f_UIControl"><a href="transitions_dialog.htm">Transitions</a></span><span class="f_TiporNoteText"> tab of the </span><span class="f_UIControl">Configure Timeline</span><span class="f_TiporNoteText"> dialog.</span></li>
</ul>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Change the Transition Time</span></p>
<p class="p_BodyText"><span class="f_BodyText">Move the cursor over one or other of the vertical transition lines and drag the line left or right to change the time of the transition. While on the line, the cursor shape changes to the horizontal movement cursor (</span><img src="leftrightcursor.png" width="24" height="16" border="0" alt="Leftrightcursor"><span class="f_BodyText">).</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Merge Transitions</span></p>
<p class="p_BodyText"><span class="f_BodyText">If necessary, you can 'push' a transition to merge it with the next or previous transition point on any Lifeline element on the diagram.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Position the cursor off the appropriate side of the transition line; the cursor changes form (</span><img src="mergeleft.png" width="19" height="20" border="0" alt="Mergeleft"><span class="f_BodyText"> or </span><img src="mergeright.png" width="19" height="18" border="0" alt="Mergeright"><span class="f_BodyText">). Click the mouse button. The system locates the nearest transition in the required direction, on any element on the diagram, and merges the current transition with that transition.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Delete Transitions</span></p>
<p class="p_BodyText"><span class="f_BodyText">Transitions are automatically deleted when you move the transition to the same state as the previous transition state, and release the cursor.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Alternatively, right-click on the transition line to display the context menu, and select the</span><span class="f_MenuKeyField"> Delete</span><span class="f_BodyText"> menu option.</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
